package com.stt.order.design.strategy.impl;

import com.stt.order.design.strategy.PromotionStrategy;
import com.stt.order.model.Order;
import java.math.BigDecimal;

/**
 * 节假日双倍积分策略实现类
 * 不影响订单金额，只是在订单完成后会获得双倍积分
 */
public class HolidayDoublePointsStrategy implements PromotionStrategy {
    @Override
    public BigDecimal apply(Order order, BigDecimal amount) {
        // 积分翻倍不影响订单金额，直接返回原金额
        return amount;
    }

    @Override
    public String getType() {
        return "HOLIDAY_DOUBLE_POINTS";
    }
} 